package picture;

public class Rectangle extends Picture {
	private double a, b, girth, acreage;

	/**
	 * @param a
	 * @param b
	 */
	public Rectangle(double a, double b) {
		super();
		this.a = a;
		this.b = b;
	}

	public double getGirth() {
		this.girth = (a + b) * 2;
		return this.girth;
	}

	@Override
	public double getAcreage() {
		this.acreage = a * b;
		return this.acreage;
	}

}
